package com.we823.project.model.we;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.we823.project.model.BaseModelWithDate;

@Entity
@Table(name="we_resource")
public class ResourceModel extends BaseModelWithDate {

	private static final long serialVersionUID = -4565401371884964830L;

	private String name;
	private String type;
	private int orderid=0;
	private int parentid=0;
	/**
	 * 权限字符串
	 */
	private String permission;
	private String identity;
	private String linkurl;
	
	private int available=1;
	private String style=" fa-tachometer";
	
	@Transient
	private List<ResourceModel> subresources;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public int getOrderid() {
		return orderid;
	}

	public void setOrderid(int orderid) {
		this.orderid = orderid;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public int getParentid() {
		return parentid;
	}

	public void setParentid(int parentid) {
		this.parentid = parentid;
	}

	public int getAvailable() {
		return available;
	}

	public void setAvailable(int available) {
		this.available = available;
	}

	public String getLinkurl() {
		return linkurl;
	}

	public void setLinkurl(String linkurl) {
		this.linkurl = linkurl;
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	public List<ResourceModel> getSubresources() {
		return subresources;
	}

	public void setSubresources(List<ResourceModel> subresources) {
		this.subresources = subresources;
	}

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}
	
}
